package com.hk.kindheartedness.model;

import java.util.Date;

/**
 * @Author：alpha
 * @Create：2022/2/27/10:50
 * @Description：用户
 * @Version：1.0
 */
public class User {

    /**
     * ID 唯一 （默认自增）
     */
    private Integer id;

    /**
     * 姓名 唯一
     */
    private String userName;

    /**
     * 手机号 唯一
     */
    private String phone;

    /**
     * 密码
     */
    private String password;

    /**
     * 类型 0： 患者 1：医生  2：管理员 3：采购员（进药物的）
     */
    private Integer type;

    /**
     * 就诊卡号（根据注册当日自动生成）
     */
    private String medicalCardNumber;

    /**
     * 性别 0:男 1：女
     */
    private Integer sex;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 证件编号（身份证号）
     */
    private String idNumber;

    /**
     * 住址
     */
    private String address;

    /**
     * 医生详情ID
     */
    private Integer doctorId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public String getMedicalCardNumber() {
        return medicalCardNumber;
    }

    public void setMedicalCardNumber(String medicalCardNumber) {
        this.medicalCardNumber = medicalCardNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public User() {
        super();
    }

    public User(Integer id, String userName, String phone, String password, Integer type, String medicalCardNumber, Integer sex, Integer age, String idNumber, String address, Integer doctorId, Date createTime, Date updateTime) {
        this.id = id;
        this.userName = userName;
        this.phone = phone;
        this.password = password;
        this.type = type;
        this.medicalCardNumber = medicalCardNumber;
        this.sex = sex;
        this.age = age;
        this.idNumber = idNumber;
        this.address = address;
        this.doctorId = doctorId;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public User(Integer id, String userName, String phone, String medicalCardNumber, Integer sex, Integer age, String idNumber, String address) {
        this.id = id;
        this.userName = userName;
        this.phone = phone;
        this.medicalCardNumber = medicalCardNumber;
        this.sex = sex;
        this.age = age;
        this.idNumber = idNumber;
        this.address = address;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", type=" + type +
                ", medicalCardNumber=" + medicalCardNumber +
                ", sex=" + sex +
                ", age=" + age +
                ", idNumber=" + idNumber +
                ", address='" + address + '\'' +
                ", doctorId=" + doctorId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
